package com.yoke.util;/**
 * Created by jiangzeyin on 2017/2/16.
 */

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;

import java.io.File;

/**
 * @author jiangzeyin
 * @create 2017 02 16 10:20
 */
public class XmlUtil {
    private static SAXReader reader = new SAXReader();

    public static Document read(String path) throws DocumentException {
        return reader.read(new File(path));
    }
}
